package com.legal.app.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.common.annotation.Excel;
import com.legal.common.core.domain.BaseEntity;

/**
 * 律师评论对象 z_lawyer_comment
 * 
 * @author Ale
 * @date 2025-05-30
 */
@TableName("z_lawyer_comment")
public class LawyerComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long id;

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Long userId;

    /** 被评论律师ID */
    @Excel(name = "被评论律师ID")
    private Long lawyerId;

    /** 父评论ID（用于回复） */
    @Excel(name = "父评论ID", readConverterExp = "用=于回复")
    private Long parentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 状态(0=已删除,1=正常,2=待审核) */
    @Excel(name = "状态(0=已删除,1=正常,2=待审核)")
    private Long status;

    /** 律师回复内容 */
    @Excel(name = "律师回复内容")
    private String replyContent;

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setLawyerId(Long lawyerId) 
    {
        this.lawyerId = lawyerId;
    }

    public Long getLawyerId() 
    {
        return lawyerId;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setReplyContent(String replyContent) 
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent() 
    {
        return replyContent;
    }

    public void setReplyTime(Date replyTime) 
    {
        this.replyTime = replyTime;
    }

    public Date getReplyTime() 
    {
        return replyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("lawyerId", getLawyerId())
            .append("parentId", getParentId())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("replyContent", getReplyContent())
            .append("replyTime", getReplyTime())
            .toString();
    }
}
